import request from './request.js'

export const wxLogin=(params)=>{
	return request({
		url: "/user/wxLogin",
		method: "post",
		data: params,
	})
}
/* 获取手机号并登录 */
export const getWxPhone=(params)=>{
	return request({
		url:'/user/getWxPhone',
		method:"POST",
		data:params
	})
}
// 获取职位
export const jobList=(params)=>{
	return request({
		url:'/web/common/jobList',
		method:"POST",
		data:params
	})
}
// 我收到的消息列表
export const receiveMsgList=(params)=>{
	return request({
		url:'/web/common/receiveMsgList',
		method:"POST",
		data:params
	})
}
// 我收到的消息详情
export const msgDetails=(params)=>{
	return request({
		url:'/web/common/msgDetails',
		method:"POST",
		data:params
	})
}
// 我推送的消息列表
export const pushMsgList=(params)=>{
	return request({
		url:'/web/common/pushMsgList',
		method:"POST",
		data:params
	})
}
// 我推送的消息详情
export const pushMsgDetails=(params)=>{
	return request({
		url:'/web/common/pushMsgDetails',
		method:"POST",
		data:params
	})
}
// 项目数据总览
export const myUnreadCount=(params)=>{
	return request({
		url:'/web/common/myUnreadCount',
		method:"POST",
		data:params
	})
}
// 项目数据总览
export const dataOverview=(params)=>{
	return request({
		url:'/web/common/dataOverview',
		method:"POST",
		data:params
	})
}
// 数据统计
export const dataStatistics=(params)=>{
	return request({
		url:'/web/common/dataStatistics',
		method:"POST",
		data:params
	})
}
// 获取省份
export const areaList=(params)=>{
	return request({
		url:'/web/common/areaList',
		method:"POST",
		data:params
	})
}
/* 获取主体、类型、立项 */
export const searchList=(params)=>{
	return request({
		url:'/web/index/searchList',
		method:"POST",
		data:params
	})
}
/* 获取主体、类型、立项 */
export const historyAgreement=(params)=>{
	return request({
		url:'/web/my/historyAgreement',
		method:"POST",
		data:params
	})
}
/* 用户指引 */
export const course=(params)=>{
	return request({
		url:'/web/my/course',
		method:"POST",
		data:params
	})
}
/* 创建项目 */
export const projectCreate=(params)=>{
	return request({
		url:'/web/index/projectCreate',
		method:"POST",
		data:params
	})
}
/* 短信登录 */
export const mobilelogin=(params)=>{
	return request({
		url:'/user/mobilelogin',
		method:"POST",
		data:params
	})
}
/* 查看项目 */
export const projectInfo=(params)=>{
	return request({
		url:'/web/index/projectInfo',
		method:"POST",
		data:params
	})
}
// 获取openId
export const empower=(params)=>{
	return request({
		url:'/user/empower',
		method:"POST",
		data:params
	})
}

/* 项目列表 */
export const projectList=(params)=>{
	return request({
		url:'/web/index/projectList',
		method:"POST",
		data:params
	})
}
/* 修改个人信息*/
export const profile=(params)=>{
	return request({
		url:'/user/profile',
		method:"POST",
		data:params
	})
}
export const getUser=(params)=>{
	return request({
		url:'/user/getUser',
		method:"POST",
		data:params
	})
}

/* 评论列表*/
export const projectComment=(params)=>{
	return request({
		url:'/web/index/projectComment',
		method:"POST",
		data:params
	})
}
/* 评论项目列表*/
export const setComment=(params)=>{
	return request({
		url:'/web/index/comment',
		method:"POST",
		data:params
	})
}
/* 个人历史项目列表*/
export const historyProjectList=(params)=>{
	return request({
		url:'/web/my/historyProjectList',
		method:"POST",
		data:params
	})
}
/* 修改项目*/
export const projectUpd=(params)=>{
	return request({
		url:'/web/index/projectUpd',
		method:"POST",
		data:params
	})
}
/* 修改项目*/
export const projectdel=(params)=>{
	return request({
		url:'/web/index/projectdel',
		method:"POST",
		data:params
	})
}
/* 新增进度*/
export const addprojectProcess=(params)=>{
	return request({
		url:'/web/index/projectProcess',
		method:"POST",
		data:params
	})
}
/* 进度列表*/
export const projectProcessList=(params)=>{
	return request({
		url:'/web/index/projectProcesslist',
		method:"POST",
		data:params
	})
}
/* 日志*/
export const userOperateLog=(params)=>{
	return request({
		url:'/web/my/userOperateLog',
		method:"POST",
		data:params
	})
}

export const projectPemind=(params)=>{
	return request({
		url:'/web/index/projectPemind',
		method:"POST",
		data:params
	})
}
//绑定公众号
export const bindWechat=(params)=>{
	return request({
		url:'/user/bindWechat',
		method:"POST",
		data:params
	})
}
//获取用户列表
export const getUserList=(params)=>{
	return request({
		url:'/web/index/getUserList',
		method:"POST",
		data:params
	})
}
//消息推送
export const pushMsg=(params)=>{
	return request({
		url:'/web/common/pushMsg',
		method:"POST",
		data:params
	})
}
